package com.dsdl.chatapp.data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by zzg on 2016/8/30.
 * 发送的验证消息
 */
public class VerifyMessage implements Parcelable {
    private String phone;
    private String token;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.phone);
        dest.writeString(this.token);
    }

    public VerifyMessage() {
    }

    protected VerifyMessage(Parcel in) {
        this.phone = in.readString();
        this.token = in.readString();
    }

    public static final Parcelable.Creator<VerifyMessage> CREATOR = new Parcelable.Creator<VerifyMessage>() {
        @Override
        public VerifyMessage createFromParcel(Parcel source) {
            return new VerifyMessage(source);
        }

        @Override
        public VerifyMessage[] newArray(int size) {
            return new VerifyMessage[size];
        }
    };
}
